/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PatientMedicationsPanel.java
 *
 * Created on Aug 14, 2011, 8:36:27 PM
 */
package panels;

/**
 *
 * @author NATHAN
 */
public class PatientMedicationsPanel extends javax.swing.JPanel {

  /** Creates new form PatientMedicationsPanel */
  public PatientMedicationsPanel() {
    initComponents();

    // med id - name

    // app id - date and doctor

    // instructions - popup window from dclick
  }

  /** This method is called from within the constructor to
   * initialize the form.
   * WARNING: Do NOT modify this code. The content of this method is
   * always regenerated by the Form Editor.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;

    jLabel1 = new javax.swing.JLabel();
    allergiesScrollPane = new javax.swing.JScrollPane();
    allergiesTable = new javax.swing.JTable();

    setBackground(new java.awt.Color(220, 220, 210));
    setMinimumSize(new java.awt.Dimension(655, 560));
    setPreferredSize(new java.awt.Dimension(655, 560));
    setLayout(new java.awt.GridBagLayout());

    jLabel1.setFont(new java.awt.Font("Tahoma", 1, 24));
    jLabel1.setText("Medications");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
    gridBagConstraints.insets = new java.awt.Insets(20, 15, 10, 0);
    add(jLabel1, gridBagConstraints);

    allergiesScrollPane.setBackground(new java.awt.Color(220, 220, 210));
    allergiesScrollPane.setBorder(null);
    allergiesScrollPane.setForeground(new java.awt.Color(220, 220, 210));
    allergiesScrollPane.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    allergiesScrollPane.setMinimumSize(new java.awt.Dimension(640, 500));
    allergiesScrollPane.setPreferredSize(new java.awt.Dimension(640, 500));

    allergiesTable.setBackground(new java.awt.Color(240, 240, 240));
    allergiesTable.setModel(new javax.swing.table.DefaultTableModel(
      new Object [][] {
        {"Name", "Name", "Amount", "Date (yyyy-mm-dd)", "Doctor"}
      },
      new String [] {
        "Brand Name", "Generic Name", "Quantity", "Prescribed On", "Prescribed By"
      }
    ) {
      boolean[] canEdit = new boolean [] {
        false, false, false, false, false
      };

      public boolean isCellEditable(int rowIndex, int columnIndex) {
        return canEdit [columnIndex];
      }
    });
    allergiesScrollPane.setViewportView(allergiesTable);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.weighty = 0.1;
    gridBagConstraints.insets = new java.awt.Insets(6, 25, 15, 25);
    add(allergiesScrollPane, gridBagConstraints);
  }// </editor-fold>//GEN-END:initComponents
  // Variables declaration - do not modify//GEN-BEGIN:variables
  private javax.swing.JScrollPane allergiesScrollPane;
  private javax.swing.JTable allergiesTable;
  private javax.swing.JLabel jLabel1;
  // End of variables declaration//GEN-END:variables
}
